package cn.zktr.Personnel.model.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.util.List;


/**
 * The persistent class for the per_sly_tax database table.
 * 
 */
@Entity
@Table(name="per_sly_tax")
@NamedQuery(name="PerSlyTax.findAll", query="SELECT p FROM PerSlyTax p")
public class PerSlyTax implements Serializable {
	@Override
	public String toString() {
		return "PerSlyTax [taxid=" + taxid + ", taxfs=" + taxfs + ", taxgd=" + taxgd + ", taxgr=" + taxgr + ", taxgs="
				+ taxgs + ", taxmax=" + taxmax + ", taxmin=" + taxmin + ", perSlyScsies=" + perSlyScsies + "]";
	}

	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="PER_SLY_TAX_TAXID_GENERATOR", sequenceName="SEQ1",allocationSize=1,initialValue=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="PER_SLY_TAX_TAXID_GENERATOR")
	private int taxid;

	private String taxfs;

	private String taxgd;

	private String taxgr;

	private String taxgs;

	private String taxmax;

	private String taxmin;

	//bi-directional many-to-one association to PerSlyScsy
	@OneToMany(mappedBy="perSlyTax")
	private List<PerSlyScsy> perSlyScsies;

	public PerSlyTax() {
	}

	public int getTaxid() {
		return this.taxid;
	}

	public void setTaxid(int taxid) {
		this.taxid = taxid;
	}

	public String getTaxfs() {
		return this.taxfs;
	}

	public void setTaxfs(String taxfs) {
		this.taxfs = taxfs;
	}

	public String getTaxgd() {
		return this.taxgd;
	}

	public void setTaxgd(String taxgd) {
		this.taxgd = taxgd;
	}

	public String getTaxgr() {
		return this.taxgr;
	}

	public void setTaxgr(String taxgr) {
		this.taxgr = taxgr;
	}

	public String getTaxgs() {
		return this.taxgs;
	}

	public void setTaxgs(String taxgs) {
		this.taxgs = taxgs;
	}

	public String getTaxmax() {
		return this.taxmax;
	}

	public void setTaxmax(String taxmax) {
		this.taxmax = taxmax;
	}

	public String getTaxmin() {
		return this.taxmin;
	}

	public void setTaxmin(String taxmin) {
		this.taxmin = taxmin;
	}

	public List<PerSlyScsy> getPerSlyScsies() {
		return this.perSlyScsies;
	}

	public void setPerSlyScsies(List<PerSlyScsy> perSlyScsies) {
		this.perSlyScsies = perSlyScsies;
	}

	public PerSlyScsy addPerSlyScsy(PerSlyScsy perSlyScsy) {
		getPerSlyScsies().add(perSlyScsy);
		perSlyScsy.setPerSlyTax(this);

		return perSlyScsy;
	}

	public PerSlyScsy removePerSlyScsy(PerSlyScsy perSlyScsy) {
		getPerSlyScsies().remove(perSlyScsy);
		perSlyScsy.setPerSlyTax(null);

		return perSlyScsy;
	}

}